package rmaqlc31.basic;

import java.util.Scanner;

public class J04_CardCheck {

	public static void main(String[] args) {
		
		Scanner sc = null;
		int cardcheck;
		final String A = "NH농협카드";
		final String B = "신한카드";
		final String C = "KB국민카드";
		final String D = "비씨카드";
		final String E = "국민은행";
		final String F = "외한카드";
		final String G = "JCB카드";
		final String H = "비자카드";
		final String I = "마스타카드, Maestro";
		final String J = "해당 번호의 정보가 없습니다.";
		
		
		sc = new Scanner(System.in);
		
		System.out.println("6자리 숫자를 입력하세요 : ");
		cardcheck = sc.nextInt();
		
		if(cardcheck<400000&&cardcheck>=300000)
			{switch((int)cardcheck){
				case 356317 : System.out.println(G + '\t' + A);break;
				case 356901 : System.out.println(G + '\t' + B);break;
				case 356912 : System.out.println(G + '\t' + C);break;
				default : System.out.println(G);break;}
				}
		else if(cardcheck<500000&&cardcheck>=400000)
		{switch((int)cardcheck){
			case 404825 : System.out.println(H + '\t' + D);break;
			case 438676 : System.out.println(H + '\t' + B);break;
			case 457973 : System.out.println(H + '\t' + E);break;
			default : System.out.println(H);break;}
				}
		else if(cardcheck<600000&&cardcheck>=500000)
		{switch((int)cardcheck){
			case 515594 : System.out.println(I + '\t' + B);break;
			case 524353 : System.out.println(I + '\t' + F);break;
			case 540926 : System.out.println(I + '\t' + E);break;
			default : System.out.println(I);}
		}
		else{System.out.println(J);}
		sc.close();

	}

}
